package com.springboot.controller;

import com.springboot.biz.ManholeBiz;
import com.springboot.entity.Manhole;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/manhole")
public class ManholeController {

    @Resource
    private ManholeBiz manholeBiz;

    @RequestMapping(value = "/findinfo", method = RequestMethod.POST)
    public Manhole findInfo(@RequestParam(defaultValue = "") String x, @RequestParam(defaultValue = "") String y) {
        return manholeBiz.findInfoManhole(x, y);
    }

}
